package com.sky.service;

import com.sky.dto.AddressBookDTO;
import com.sky.entity.AddressBook;

import java.util.List;

public interface AddressBookService {

    void save(AddressBookDTO addressBookDTO);

    List<AddressBook> list();

    void updateByDefault(AddressBook addressBook);

    AddressBook getById(Long id);

    AddressBook getByDefault();

    void deleteById(Long id);

    void updateAddress(AddressBookDTO addressBookDTO);
}
